package com.pattern.singleton;
/*
* 注册式单例  枚举单例
* */
public enum  EnumStringleton {
    INSTANCE;
    private Object data;
    public Object getData(){
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static EnumStringleton getInstance(){
        return INSTANCE;
    }

}
